require 'test/unit'
require 'Modele/Acces'
require 'Modele/Parking'
require 'Modele/Vehicule'
class PlaceTest < Test::Unit::TestCase

  def test_is_empty_empty
    Dbconect.creationbd("test")
    db = SQLite3::Database.new("test.db")
    place = Place.new(3,db,nil)
    assert(place.is_empty,"test_is_empty_empty fail")
  end
  
  def test_is_empty_full
    Dbconect.creationbd("test")
    db = SQLite3::Database.new("test.db")
    place = Place.new(3,db,nil)
    vehi = Vehicule.new("999-gyh-31",15,19)
    place.vehicule=vehi
    assert(!place.is_empty,"test_is_empty_full fail")
  end
  
  
end  